#!/bin/bash
ip=192.168.3.26

if ping -c1 $ip &>/dev/nul;then
	echo "$ip is up."
else
	echo "$ip is down."
fi
